import request from '@/utils/request'

// 获取塘口设备数据
export function getPondDeviceDataChat(params) {
	return request({
		url: '/api/app/device/data/chat',
		method: 'get',
		params
	})
}

// 获取塘口设备数据
export function getPondDeviceDataTable(params) {
	return request({
		url: '/api/app/device/data/table',
		method: 'get',
		params
	})
}

// 获取塘口近三日数据
export function getPondDeviceDataDailyChat(params) {
	return request({
		url: '/api/app/device/data/daily',
		method: 'get',
		params
	})
}

export function getPondDeviceWeekRunChat(params) {
	return request({
		url: '/api/app/device/data/week/run',
		method: 'get',
		params
	})
}

// 获取塘口设备数据
export function getPondDeviceRunTable(params) {
	return request({
		url: '/api/app/device/data/run',
		method: 'get',
		params
	})
}

// 获取塘口设备数据
export function deviceControl(data) {
	return request({
		url: '/api/app/device/data/control',
		method: 'post',
		data
	})
}

// 查询摄像头相关配置信息列表
export function getSingleDeviceData(params) {
  return request({
    url: '/api/devices/data/single',
    method: 'get',
    params
  })
}